package com.lz.service.ly.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lz.entity.Customer;
import com.lz.repository.ly.CustomerRepository;
import com.lz.service.ly.CustomerService;
@Service
public class CustomerServiceImpl implements CustomerService {
	@Autowired
	private CustomerRepository customerRepository;

	@Override
	public List<Customer> getAll() {
		return customerRepository.getAll();
	}

	@Override
	public Customer getCustomerById(Integer id) {
		return customerRepository.getCustomerById(id);
	}

}
